package com.datasource.repository;

import com.datasource.entity.*;

import java.util.List;

public interface DataRepository {

  void insertFilm(List<Film> films);

  void createRandomDictionary(List<Dictionary> dictionaries);

  List<Dictionary> getAllDictionaries();

  void insertActor(List<Actor> actors);

  void insertFilmWithId(List<Film> films);

  void insertUser(List<User> users);

  void insertInvoice(List<Invoice> invoices);

  List<User> getUserByAgeOver(int age);

  List<Invoice> getInvoiceByAmountOver(int amount);

  List<Invoice> getInvoiceByAgeAndAmount(int age, int amount);

  void insertMessage(List<Message> messages);

  void updateEmailInActor(List<String> emails, int index);

  void synchronizeEmailInActor();
}
